]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Use a regular tween when expanding the notification
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 4 Nov 2013 19:25:29 +0000 (14:25 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 4 Nov 2013 19:25:29 +0000 (14:25 -0500)
When a notification becomes expanded, it's either already shown,
or in the process of being shown. Don't set the state to SHOWING
again, which confuses our state machine.

js/ui/messageTray.js

index 19599441a35fe210c28fab1f0dc7efd9115516af..cd05973da2b5b2eed1d1db2ceb2c5f936df9640e 100644 (file)
@@ -2755,12 +2755,12 @@ const MessageTray = new Lang.Class({
         } else if (this._notification.y != expandedY) {
             // Tween also opacity here, to override a possible tween that's
             // currently hiding the notification.
-            this._tween(this._notificationWidget, '_notificationState', State.SHOWN,
-                        { y: expandedY,
-                          opacity: 255,
-                          time: ANIMATION_TIME,
-                          transition: 'easeOutQuad'
-                        });
+            Tweener.addTween(this._notificationWidget,
+                             { y: expandedY,
+                               opacity: 255,
+                               time: ANIMATION_TIME,
+                               transition: 'easeOutQuad'
+                             });
         }
     },